Obtain the recent files max age setting from xsettings
authorMatthias Clasen <mclasen@redhat.com>
Sun, 25 Nov 2012 20:45:26 +0000 (15:45 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 30 Nov 2012 04:10:33 +0000 (23:10 -0500)
This will help with implementing desktop-wide policy for
retaining of history.

https://bugzilla.gnome.org/show_bug.cgi?id=689047

gdk/x11/gdksettings.c

index 15d73ba98d0f644f0ad1e4909dd1e54e3fc6dfbd..416de43f4e2cf9613c9ff99300e981e5e982084b 100644 (file)
@@ -82,7 +82,8 @@ static const char gdk_settings_names[] =
   "Gtk/VisibleFocus\0"        "gtk-visible-focus\0"
   "Gtk/ShellShowsAppMenu\0"   "gtk-shell-shows-app-menu\0"
   "Gtk/ShellShowsMenubar\0"   "gtk-shell-shows-menubar\0"
-  "Gtk/EnablePrimaryPaste\0"  "gtk-enable-primary-paste\0";
+  "Gtk/EnablePrimaryPaste\0"  "gtk-enable-primary-paste\0"
+  "Gtk/RecentFilesMaxAge\0"   "gtk-recent-files-max-age\0";
 
 
 
@@ -140,5 +141,6 @@ static const struct
   { 1767, 1784 },
   { 1802, 1824 },
   { 1849, 1871 },
-  { 1895, 1918 }
+  { 1895, 1918 },
+  { 1943, 1965 }
 };